#include "threadPool.h"
#include "command.h"
#include "head.h"

int execOrder(int orderflag,char* path,int netfd,user_t* user){
    switch(orderflag){
    case(CD):
        myCd(path,user);
        break;//cd 的具体函数
    case(LS):
        ls_server(path);
        break;
    case(PUTS):
        puts_server(netfd);
        break;
    case(GETS):
        gets_server(netfd,path);//done
        break;
    case(REMOVE):
        remove_server(path);
        break;
    case(PWD):
        pwd_server();
        break;
    case(MKDIR):
        mkdir_server();
        break;
    case(RMDIR):
        rmdir_server();
        break;
    }
    return 0;
}